package com.theaf.core.shiro;

import com.theaf.core.api.model.Menu;
import lombok.Data;

import java.util.Date;
import java.util.Map;
import java.util.Set;

/**
 * @Author:songwenke
 * @Description:登录用户信息
 * @Date:create in 10:03 2017/12/27
 *dified By:
 **/
@Data
public class LoginUser {
    private long id;
    private String account;
    private String name;
    private String phone;
    private String organId;
    private String organName;
    /**
     * 用户所有的业务模板
     */
    private Map<String,String> busModuels ;
    /**
     * 当前业务模板
     */
    private String currentBusModuel;
    private String ip;
    /**
     * 终端
     */
    private String terminal;
    private Date createTime;
    private String token;
    /**
     * 所有权限，功能编码集合
     */
    private Set<String> funs;
    /**
     * 岗位集合
     */
    private Set<String> positions;
    /**
     * 数据权限
     */
    private Set<String> organs;
    /**
     * 菜单
     */
    private Set<Menu> menus;
}
